package com.gu.domain.service;

import com.gu.domain.dto.AddArticleDto;
import com.gu.domain.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gu.domain.entity.ResponseResult;

/**
* @author 34389
* @description 针对表【sg_article(文章表)】的数据库操作Service
* @createDate 2025-10-18 15:55:44
*/
public interface ArticleService extends IService<Article> {

    //文章列表
    ResponseResult hotArticleList();

    //分类查询文章列表
    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    //根据id查询文章详情
    ResponseResult getArticleDetail(Long id);

    //根据文章id从mysql查询文章
    ResponseResult updateViewCount(Long id);

    //新增博客文章
    ResponseResult add(AddArticleDto article);
}
